﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsWatchlist" targetNamespace="http://tempuri.org/dsWatchlist.xsd" xmlns:mstns="http://tempuri.org/dsWatchlist.xsd" xmlns="http://tempuri.org/dsWatchlist.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="constrMovieMgr" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="constrMovieMgr (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.EntertainmentManager.My.MySettings.GlobalReference.Default.constrMovieMgr" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="WatchlistViewTableAdapter" GeneratorDataComponentClassName="WatchlistViewTableAdapter" Name="WatchlistView" UserDataComponentName="WatchlistViewTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="constrMovieMgr (MySettings)" DbObjectName="MovieMgr.dbo.WatchlistView" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>SELECT PKey, EntertainmentMainPKey, TitleDirector, RunTime, Rating, Seen, DateAdded, DateWatched FROM dbo.WatchlistView</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PKey" DataSetColumn="PKey" />
              <Mapping SourceColumn="EntertainmentMainPKey" DataSetColumn="EntertainmentMainPKey" />
              <Mapping SourceColumn="TitleDirector" DataSetColumn="TitleDirector" />
              <Mapping SourceColumn="RunTime" DataSetColumn="RunTime" />
              <Mapping SourceColumn="Rating" DataSetColumn="Rating" />
              <Mapping SourceColumn="Seen" DataSetColumn="Seen" />
              <Mapping SourceColumn="DateAdded" DataSetColumn="DateAdded" />
              <Mapping SourceColumn="DateWatched" DataSetColumn="DateWatched" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsWatchlist" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsWatchlist" msprop:Generator_DataSetName="dsWatchlist">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="WatchlistView" msprop:Generator_UserTableName="WatchlistView" msprop:Generator_RowDeletedName="WatchlistViewRowDeleted" msprop:Generator_TableClassName="WatchlistViewDataTable" msprop:Generator_RowChangedName="WatchlistViewRowChanged" msprop:Generator_RowClassName="WatchlistViewRow" msprop:Generator_RowChangingName="WatchlistViewRowChanging" msprop:Generator_RowEvArgName="WatchlistViewRowChangeEvent" msprop:Generator_RowEvHandlerName="WatchlistViewRowChangeEventHandler" msprop:Generator_TablePropName="WatchlistView" msprop:Generator_TableVarName="tableWatchlistView" msprop:Generator_RowDeletingName="WatchlistViewRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PKey" msprop:Generator_UserColumnName="PKey" msprop:Generator_ColumnPropNameInRow="PKey" msprop:Generator_ColumnVarNameInTable="columnPKey" msprop:Generator_ColumnPropNameInTable="PKeyColumn" type="xs:int" />
              <xs:element name="EntertainmentMainPKey" msprop:Generator_UserColumnName="EntertainmentMainPKey" msprop:Generator_ColumnPropNameInRow="EntertainmentMainPKey" msprop:Generator_ColumnVarNameInTable="columnEntertainmentMainPKey" msprop:Generator_ColumnPropNameInTable="EntertainmentMainPKeyColumn" type="xs:int" />
              <xs:element name="TitleDirector" msdata:ReadOnly="true" msprop:Generator_UserColumnName="TitleDirector" msprop:Generator_ColumnPropNameInRow="TitleDirector" msprop:Generator_ColumnVarNameInTable="columnTitleDirector" msprop:Generator_ColumnPropNameInTable="TitleDirectorColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="741" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="RunTime" msprop:Generator_UserColumnName="RunTime" msprop:Generator_ColumnPropNameInRow="RunTime" msprop:Generator_ColumnVarNameInTable="columnRunTime" msprop:Generator_ColumnPropNameInTable="RunTimeColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Rating" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Rating" msprop:Generator_ColumnPropNameInRow="Rating" msprop:Generator_ColumnVarNameInTable="columnRating" msprop:Generator_ColumnPropNameInTable="RatingColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="61" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Seen" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Seen" msprop:Generator_ColumnPropNameInRow="Seen" msprop:Generator_ColumnVarNameInTable="columnSeen" msprop:Generator_ColumnPropNameInTable="SeenColumn" type="xs:int" minOccurs="0" />
              <xs:element name="DateAdded" msprop:Generator_UserColumnName="DateAdded" msprop:Generator_ColumnPropNameInRow="DateAdded" msprop:Generator_ColumnVarNameInTable="columnDateAdded" msprop:Generator_ColumnPropNameInTable="DateAddedColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DateWatched" msprop:Generator_UserColumnName="DateWatched" msprop:Generator_ColumnPropNameInRow="DateWatched" msprop:Generator_ColumnVarNameInTable="columnDateWatched" msprop:Generator_ColumnPropNameInTable="DateWatchedColumn" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:WatchlistView" />
      <xs:field xpath="mstns:PKey" />
      <xs:field xpath="mstns:EntertainmentMainPKey" />
    </xs:unique>
  </xs:element>
</xs:schema>